/**
 *@auther: tang
 *@Date: 2020-11-13
 *Project: group-booking-shop-manage-system
 */
import {makeAutoObservable} from "mobx";
class PermissStore {
    constructor() {
        makeAutoObservable(this)
    }
    routeNotFound=false
    permissCheckData=[]
    set permissCheckData(param){
        localStorage.setItem("permissCheckData",JSON.stringify(param))
    }
    get permissCheckData(){
        if (localStorage.getItem("permissCheckData")){
            return JSON.parse(localStorage.getItem("permissCheckData"))
        }
        return ""
    }
    set routeNotFound(param){
        localStorage.setItem("routeNotFound",JSON.stringify(param))
    }
    get routeNotFound(){
        if (localStorage.getItem("routeNotFound")){
            return JSON.parse(localStorage.getItem("routeNotFound"))
        }
        return ""
    }

}
export default PermissStore
